<template>
  <el-popover trigger="hover" placement="top">
    <p>需开票: {{ row[$attrs.colNameInvoice] }}</p>
    <p>不需开票: {{ row[$attrs.colNameNoinvoice] }}</p>
    <div slot="reference" class="name-wrapper">
      <el-tag size="medium"><a href="javascript:;" style="color:#409EFF;"" @click="showDetail">{{ row[$attrs.colNameAll] }}</a></el-tag>
    </div>
  </el-popover>
</template>
<script type="text/javascript">
  define(['vue'],function(vue){
    //注意下面不能使用label
    return vue.component('tip-caiwu-money-src',{
      props:['row','index'],
      template:template,
      data : function() {
        return {
        };
      },
      methods:{
          showDetail(){
              if(this.row[this.$attrs.colUrl]){
                  window.location.href = this.row[this.$attrs.colUrl];
              }
          }
      },
      mounted:function() {
      },    
    });
  });
</script>

<style>
</style>